/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include <UI/UI.h>
#include "框架/屏幕.h"

#include "../播放条.h"


class C_2D编辑视口 : public C_Widget {

public:
	C_2D编辑视口(S_UI创建环境& ctx);
	~C_2D编辑视口();

	ui_绘制模板_画预设图形	m_旋转缩放线绘制;
	ui_绘制模板_画预设图形	m_背景绘制;
	ui_绘制模板_画预设图形	m_背景线绘制;
	ui_绘制模板_画预设图形	m_基线绘制;
	ui_绘制模板_行文本绘制	m_标签绘制;
	ui_绘制模板_刻度线		m_刻度线绘制;
	ui_绘制模板_2D矢量图形  m_坐标绘制;


	std::vector<C_节点基类*> m_节点;
	std::set<S_物体*>        m_物体;

	std::vector<S_Props>	m_UV激活层;


	C_属性栏* m_属性栏;

	bool m_是否未绘制;
	static C_2D编辑视口* g当前操作2D编辑视口;

	void f_数据绘制();
};


C_Widget*	f_工作区页面_创建2D视口(S_UI创建环境& ctx);




